# Contributor: Dylan Van Assche <me@dylanvanassche.be>
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=rmlmapper
pkgver=6.2.2
pkgrel=0
pkgdesc="Generate RDF from (semi-)structured data sources with RML rules."
url="https://github.com/RMLio/rmlmapper-java"
# Blocked by java-jdk
arch="all !x86 !armhf !armv7 !riscv64 !loongarch64"
options="!check" # testsuite needs proprietary Oracle DB jar
license="MIT"
depends="openjdk11 java-jre-headless"
makedepends="maven java-jdk"
source="$pkgname-$pkgver.tar.gz::https://github.com/RMLio/rmlmapper-java/archive/v$pkgver/rmlmapper-java-$pkgver.tar.gz
	rmlmapper.sh
	"
builddir="$pkgname-java-$pkgver"

build() {
	mvn install -DskipTests=true -Dmaven.buildNumber.skip=true
}

package() {
	install -Dm644 "$srcdir/$pkgname-java-$pkgver/target/$pkgname-$pkgver-"*-all.jar \
		"$pkgdir"/usr/share/java/$pkgname.jar
	install -Dm755 "$srcdir"/rmlmapper.sh \
		"$pkgdir"/usr/bin/rmlmapper
}

sha512sums="
92b0aff8cd992c93ec9c4a439a8296326ecbfaf48d4791f01cc11768995860702f6423aa7b09f33a6fea7111bafc1fec6d1ea7adb6ee2133bfc16d084b539231  rmlmapper-6.2.2.tar.gz
3c8033a4b5adffb1c15cac1e626a293f1727bf91f5dac649237805eecb74eb9d52193f29f0597c2ae888d841a75a5b30fca8bab6f78c6f645ef40c3c0f452c38  rmlmapper.sh
"
